#encoding: utf-8
import os

# SECRET_KEY = os.urandom(24)
SECRET_KEY = "sdasdasdsfdgfhttsd"

DEBUG = True

DB_USERNAME = 'root'
DB_PASSWORD = 'root'
DB_HOST = '127.0.0.1'
DB_PORT = '3306'
DB_NAME = 'dudu'

# PERMANENT_SESSION_LIFETIME =

DB_URI = 'mysql+pymysql://%s:%s@%s:%s/%s?charset=utf8' % (DB_USERNAME,DB_PASSWORD,DB_HOST,DB_PORT,DB_NAME)

SQLALCHEMY_DATABASE_URI = DB_URI
SQLALCHEMY_TRACK_MODIFICATIONS = False
TEMPLATES_AUTO_RELOAD = True


CMS_USER_ID = 'ASDFASDFSA'
FRONT_USER_ID = 'SFDFDKLKGDJKMXKLKLM'

MAIL_SERVER = 'smtp.qq.com'
MAIL_PORT = '465'
# MAIL_USE_TLS：端口号587
MAIL_USE_SSL = True
MAIL_USERNAME = '3610617216@qq.com'
MAIL_PASSWORD = 'wwsjunuyhayrdafi'
MAIL_DEFAULT_SENDER = '3610617216@qq.com'

# Ueditor的配置
UEDITOR_UPLOAD_TO_QINIU = True
UEDITOR_QINIU_ACCESS_KEY = "7iahvMjM9zTLV3t7Xh6VgmbBhi45mQGyF6yRGc5m"
UEDITOR_QINIU_SECRET_KEY = "nXDJMyxObcO2betUdan69dUhXQn9dxHWPXedmPk7"
UEDITOR_QINIU_BUCKET_NAME = "dxqspace"
UEDITOR_QINIU_DOMAIN = "http://qnsg65684.hd-bkt.clouddn.com/"

# flask-paginate的相关配置
PER_PAGE = 10
CMS_PAGE = 12